package javax.per.toolkit.pool;

public abstract class Task{
	
	public static enum TaskPriority{HIGH_PRIORITY,LOW_PRIORITY,MEDIUM_PRIORITY,RUN_IMMEDIATELY}
	public static enum TaskState{RUNNABLE,RUNING,DEAD,BLOCKED}
	
	private TaskPriority priority=TaskPriority.MEDIUM_PRIORITY;
	
	private TaskState state;
	
	
	public TaskState getState() {
		return state;
	}

	public void setState(TaskState state) {
		this.state = state;
	}

	public TaskPriority getPriority() {
		return priority;
	}
	
	public void setPriority(TaskPriority priority) {
		this.priority = priority;
	}
	
	public abstract void run();
	
}
